import { createStore } from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import user from './modules/user'

const store = createStore({
    modules: {
        user,
    },
    plugins: [
        createPersistedState({
            storage: window.localStorage, //默认 修改存储的状态
            key: 'MLBkey',
        }),
    ],
})
export default store